package com.bwie.service.impl;

import com.bwie.common.domain.Menu;
import com.bwie.common.domain.User;
import com.bwie.mapper.SysMapper;
import com.bwie.service.SysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: SysServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author: GONGWENXUE
 * @date: 2025/10/22 9:27
 */
@Service
public class SysServiceImpl implements SysService {
    @Autowired
    SysMapper sysMapper;

    @Override
    public User selectNameByUser(String username) {
        return sysMapper.selectNameByUser(username);
    }

    @Override
    public User selectPhoneByUser(String phone) {
        return sysMapper.selectPhoneByUser(phone);
    }

    @Override
    public List<Menu> getMenu(Integer userId) {
        List<Menu> menus=sysMapper.getMenu(userId);
        return menus;
    }
}
